<?php

declare(strict_types=1);

namespace Modules\Customer\Models;

use Catch\Base\CatchModel as Model;
use Catch\Traits\DB\BaseOperate;
use Catch\Traits\DB\ScopeTrait;
use Catch\Traits\DB\Trans;

/**
 * @property $id
 * @property $username
 * @property $phone
 * @property $avatar
 * @property $uniqueId
 * @property $lessons
 * @property $login_ip
 * @property $login_at
 * @property $status
 * @property $creator_id
 * @property $created_at
 * @property $updated_at
 * @property $deleted_at
*/
class Customer extends Model
{
    use BaseOperate, Trans, ScopeTrait;

    const CREATED_AT = 'created_at'; // 创建时间
    const UPDATED_AT = 'updated_at'; // 更新时间

    public $timestamps = true;
    public $dateFormat = "U";

    protected $table = 'customer';

    protected $fillable = [ 'id', 'username', 'phone', 'avatar', 'uniqueId', 'lessons', 'login_ip', 'login_at', 'status', 'creator_id', 'created_at', 'updated_at', 'deleted_at' ];

    /**
     * @var array
     */
    public array $searchable = [

    ];


}
